require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 1,["7"] = 11,["8"] = 11,["9"] = 11,["11"] = 11,["12"] = 14,["13"] = 14,["14"] = 14,["16"] = 14,["17"] = 14,["19"] = 14,["20"] = 14,["22"] = 14,["23"] = 14,["25"] = 14,["26"] = 14,["28"] = 15,["29"] = 15,["31"] = 15,["32"] = 15,["34"] = 15,["35"] = 15,["37"] = 16,["38"] = 16,["39"] = 16,["40"] = 16,["41"] = 16,["42"] = 16,["43"] = 16,["44"] = 17,["45"] = 17,["46"] = 17,["47"] = 17,["48"] = 17,["49"] = 17,["50"] = 17,["51"] = 24,["52"] = 24,["53"] = 24,["54"] = 24,["55"] = 29,["56"] = 30,["57"] = 30,["58"] = 30,["59"] = 30,["60"] = 30,["61"] = 30,["62"] = 30,["63"] = 30,["64"] = 31,["65"] = 24,["66"] = 33,["67"] = 34,["68"] = 39,["69"] = 40,["70"] = 40,["71"] = 40,["72"] = 40,["73"] = 40,["74"] = 40,["75"] = 40,["76"] = 40,["77"] = 41,["78"] = 34,["79"] = 43,["81"] = 45,["82"] = 46,["83"] = 14,["84"] = 11});
local ____exports = {}
local ____tween = require("solar.tween.index")
local Tween = ____tween.Tween
local Easing = ____tween.Easing
____exports.default = __TS__Class()
local TweenUtil = ____exports.default
TweenUtil.name = "TweenUtil"
function TweenUtil.prototype.____constructor(self)
end
function TweenUtil.frameTransition(self, prop, duration, x, y, w, h, a, delay, rollback)
    if duration == nil then
        duration = 200
    end
    if x == nil then
        x = 0
    end
    if y == nil then
        y = 0
    end
    if w == nil then
        w = 0
    end
    if h == nil then
        h = 0
    end
    if a == nil then
        a = 150
    end
    if delay == nil then
        delay = 0
    end
    if rollback == nil then
        rollback = false
    end
    local srcObj = {
        x = prop.position.x,
        y = prop.position.y,
        w = prop.size.width,
        h = prop.size.height,
        a = 255
    }
    local toObj = {
        x = prop.position.x + x,
        y = prop.position.y + y,
        w = prop.size.width + w,
        h = prop.size.height + h,
        a = a
    }
    local tween1 = __TS__New(
        Tween,
        __TS__ObjectAssign({}, srcObj)
    ):to(toObj, duration):delay(delay):easing(Easing.Quadratic.Out):onUpdate(function(____, temp)
        DzFrameSetAlpha(prop.ref.current, temp.a)
        DzFrameSetPoint(
            prop.ref.current,
            FRAMEPOINT_BOTTOMLEFT,
            DzFrameGetParent(prop.ref.current),
            FRAMEPOINT_BOTTOMLEFT,
            temp.x,
            temp.y
        )
        DzFrameSetSize(prop.ref.current, temp.w, temp.h)
    end)
    if rollback then
        local tween2 = __TS__New(Tween, toObj):to(srcObj, duration):delay(delay):easing(Easing.Quadratic.In):onUpdate(function(____, temp)
            DzFrameSetAlpha(prop.ref.current, temp.a)
            DzFrameSetPoint(
                prop.ref.current,
                FRAMEPOINT_BOTTOMLEFT,
                DzFrameGetParent(prop.ref.current),
                FRAMEPOINT_BOTTOMLEFT,
                temp.x,
                temp.y
            )
            DzFrameSetSize(prop.ref.current, temp.w, temp.h)
        end)
        tween1:chain(tween2)
    end
    DzFrameClearAllPoints(prop.ref.current)
    tween1:start()
end
____exports.default = TweenUtil
return ____exports
